package com.nengchuan.eic.nceconomy.service;

import com.nengchuan.eic.nceconomy.entity.dto.ExcelUploadDTO;
import com.nengchuan.eic.nceconomy.entity.dto.VerifyConfirmDTO;
import com.nengchuan.eic.nceconomy.entity.po.ExcelVerify;
import com.nengchuan.eic.nceconomy.entity.po.VerifyResult;
import com.baomidou.mybatisplus.extension.service.IService;
import com.nengchuan.eic.nceconomy.entity.vo.VerifyResultVO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 * 校验结果表 服务类
 * </p>
 *
 * @author luoping
 * @since 2020-04-23
 */
public interface VerifyResultService extends IService<VerifyResult> {

    @Transactional(rollbackFor = Exception.class)
    int insertList(ExcelVerify excelVerify, List<VerifyResult> verifyResults);

    /**
     * 查询验证结果
     * @param dto
     * @return
     */
    VerifyResultVO getVerifyResult(ExcelUploadDTO dto);

    /**
     * 确认结果
     * @param dto
     * @return
     */
    String getConfirmResult(VerifyConfirmDTO dto);

    /**
     * 在线预览-内容校验
     * @param dto
     * @return
     */
    List<VerifyResultVO.ContentResult> getOnlineView(ExcelUploadDTO dto);
}
